package com.kefu.system.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kefu.dao.SystemUserMapper;
import com.kefu.model.SystemUser;
import com.kefu.system.services.SystemServices;
@Service
public class SystemServicesImpl implements SystemServices {

	@Autowired
	SystemUserMapper systemUserMapper;
	
	public boolean checkName(String name) {
		return systemUserMapper.countName(name)<1;
	}

	public int insert(SystemUser su) {
		return systemUserMapper.insert(su);
	}

	@Override
	public List<SystemUser> findAll() {
		return systemUserMapper.findAll();
	}

}
